<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>ARM Integrator - HOWTO</title>
  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  <meta name="keywords" content="Prex, embedded, real-time, operating system, RTOS, open source, free">
  <meta name="author" content="Kohsuke Ohtani">
  <link rel="stylesheet" type="text/css" href="../default.css" media="screen">
  <link rel="stylesheet" type="text/css" href="../print.css" media="print">
</head>
<body>
<div id="top">
</div>
<div id="middle">

<table id="content" cellpadding="0" cellspacing="0">
  <tbody>

    <tr>
      <td id="header" colspan="2" valign="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td id="logo">
            <a href="http://prex.sourceforge.net/">
            <img alt="Prex logo" src="../img/logo.gif" border="0"
            style="width: 250px; height: 54px;"></a>
          </td>
          <td id="brief" align="right" valign="bottom">
            An Open Source, Royalty-free,<br>
	    Real-time Operating System
          </td>
        </tr>
        </table>
      </td>
    </tr>

    <tr>
      <td id="directory" style="vertical-align: top;">
      <a href="http://prex.sourceforge.net/">Prex Home</a> >
      <a href="index.html">Document Index</a> >
      ARM Integrator - HOWTO
    </tr>
    <tr><td class="pad" colspan="2" style="vertical-align: top;"></td></tr>

    <tr>
      <td id="doc" style="vertical-align: top;">
      <h1>ARM Integrator - HOWTO</h1>

<i>Version 0.1, 2008/10/18</i><br>

<h3>Table of Contents</h3>

<b>HOWTO</b>
<ul>
  <li><a href="#build">How to compile Prex for ARM Integrator?</a></li>
  <li><a href="#qemu">How to run Prex with QEMU?</a></li>
</ul>




<h2 id="build">How to compile Prex for ARM Integrator?</h2>

At first, you have to prepare the toolchain for cross compiling ARM code.
And then, the shell variables must be set for the arm-integrator target.

<h4>Step 1. Unpack Sources</h4>
Unpack the sources and move to top level directory of the source tree.
<pre class="terminal">$ cd /usr/src
$ tar zxvf prex-X.X.X.tar.gz
$ cd prex-X.X.X
</pre>

<h4>Step 2. Configure</h4>
Setup target architecture and platform.
<pre class="terminal">$ ./configure --target=arm-integrator --cross-compile=arm-elf-
</pre>

<h4>Step 3. Make</h4>
Run make.<br>
<pre class="terminal">
$ make
</pre>



<h2 id="qemu">How to run Prex with QEMU?</h2>
<p>
 You can run Prex with QEMU by the following command.
</p>
<pre class="terminal">$ qemu-system-arm.exe  -L . -kernel prexos</pre>

The black screen will appear in QEMU screen.
Then, you have to press Ctrl-Alt-3 to show the serial console. 












      </td>
    </tr>
    <tr>
      <td id="footer" colspan="2" style="vertical-align: top;">
        <a href="http://sourceforge.net">
        <img src="http://sourceforge.net/sflogo.php?group_id=132028&amp;type=1"
        alt="SourceForge.net Logo" border="0" height="31" width="88"></a><br>
        Copyright&copy; 2005-2008 Kohsuke Ohtani
      </td>
    </tr>

  </tbody>
</table>

</div>
<div id="bottom"></div>

</body>
</html>
